package com.example.a1.fannong.core.http;

/**
 * 接口名称
 */
public enum ServiceName {
    sendSmsCode("/user/sendSmsCode", "获取验证码"),
    register("/user/register", "注册"),
    modPwd("/user/modPwd", "修改密码"),
    getInfo("/user/getInfo", "获取用户信息"),
    modifyNickName("/user/modNickName", "修改用户昵称"),
    modifyGender("/user/modifyGender", "修改用户性别"),
    modifyCarNum("/user/modifyCarNum", "修改车牌号"),
    modifyHeadImg("/user/modifyHeadImg", "修改用户头像"),
    getTopSwitchImg("/common/getTopSwitchImg", "获取首页banner相关"),
    getAppLoginImg("/common/getAppLoginImg", "获取app引导页banner相关"),
    getProSortBig("/store/getProSortBig", "获取首页大分类列表"),
    getProSort("/store/getProSort", "获取首页小分类列表"),
    getProList("/store/getProList", "获取首页商品列表"),
    getProByID("/store/getProByID", "获取商品详情"),
    getProContens("/store/getProContens", "获取商品底部内容"),
    getAddressList("/address/list", "获取地址列表"),
    saveAddress("/address/save", "保存或编辑地址"),
    deleteAddress("/address/delete", "删除地址"),
    setDefault("/address/setDefault", "设置默认收货地址"),
    getStores("/store/getStores", "获取经销商列表"),
    modifyStoreId("/user/modifyStoreId", "修改经销商"),
    snatchList("/snatchList/list", "拉取购物车列表"),
    snatchEdit("/snatchList/edit", "购物车编辑"),
    snatchPrepay("/snatch/prepay", "生成订单"),
    snatchDelete("/snatchList/delete", "购物车删除"),
    getStartOrders("/store/getBillers", "获取开单员"),
    addReservation("/store/addReservation", "添加预约"),
    getRestItem("/user/getRestItem", "获取项目进度"),
    getServiceRecord("/user/getServiceRecord", "获取项目进度"),
    nameNull("", "空"),
    getCarModels("/store/getCarModels", "获取车型"),
    getBookPage("AppArticle.asmx/Article_GetBySortID", "获取宝典文章列表"),
    getBookTitleList("AppArticle.asmx/Article_Sort_GetAll", "获取标题列表"),
    getBookDetail("AppArticle.asmx/Article_GetByID", "获取文章详情"),

    getHonorToShow("/company/getComCerts","获取商家荣誉展示"),
    getSearchMerchantName("/company/getComList","获取搜索商家"),
    getCommentListByCom("/comment/getCommentListByCom","获取商家评价"),
    getCommentList("/comment/getCommentList","获取我的评价"),
    getMessagList("/msg/getMsgList","获取消息动态列表"),
    getNewsNotice("/notice/getNoticeList","获取新闻公告列表"),
    getBannerInfo("/baseimg/getImgList","获取广告轮播列表"),
    getReportList("/report/getReportList","获取我的举报列表"),
    getAllReportList("/report/getAllReportList","获取所有的举报列表"),
    getAllCommentList("/comment/getAllCommentList","获取所有评价"),
    getVersionInfo("/config/getConfigNumber","获取更新信息"),
    login("/user/login", "登录");


    private String value;
    private String description;

    private ServiceName(String value, String description) {
        this.value = value;
        this.description = description;
    }

    @Override
    public String toString() {
        return "[" + value + " " + description + "]";
    }

    public String getDescription() {
        return description;
    }

    public String getValue() {
        return value;
    }

}

